{% if 'esMasters' in group_names %}

{%- for item in groups['esMasters'] if item != inventory_hostname %}
server {{ item }}.node.{{ consul_dc_name }}.consul
{% endfor %}
local stratum 8 orphan
#smoothtime 400 0.01
manual
initstepslew 1 {% for item in groups['esMasters'] if item != inventory_hostname %}{{ item }}.node.{{ consul_dc_name }}.consul {% endfor %}

{% else %}

{% for item in groups['esMasters'] %}
server {{ item }}.node.{{ consul_dc_name }}.consul iburst
{% endfor %}
makestep 1.0 3

{% endif %}
allow {{ bind_network }}/24
driftfile /var/lib/chrony/drift
rtcsync
